import request from "@/utils/request";
import type { BasePageResult, TrademarkParamsType, TrademarkType } from "@/types/trademark";
// 获取品牌列表
export const reqGetTrademarkList = ({ page, limit }: TrademarkParamsType) => {
    return request.get<null, BasePageResult>(`/admin/product/baseTrademark/${page}/${limit}`);
};
// 添加品牌
export const reqAddTrademark = (data: TrademarkType) => {
    return request.post<TrademarkType, null>("/admin/product/baseTrademark/save", data);
};
// 删除品牌
export const reqDeleteTrademark = (id: number) => {
    return request.delete<null, null>(`/admin/product/baseTrademark/remove/${id}`);
};
// 修改品牌
export const reqUpdateTrademark = (data: TrademarkType) => {
    return request.put<TrademarkType, null>("/admin/product/baseTrademark/update", data);
};
// 获取全部品牌
export const reqGetAllTrademark = () => {
    return request.get<null, TrademarkType[]>("/admin/product/baseTrademark/getTrademarkList");
};
